﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddNewVocation.aspx.cs"
    Inherits="MyVocationSpace.AddNewVocation" %>

<%@ Register Src="Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Src="Footer.ascx" TagName="footer" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>..:: MY VocationSpace ::..</title>
    <link href="css/Default.css" rel="stylesheet" type="text/css" />
    <link href="css/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div>
            <uc:header ID="header" runat="server" />
        </div>
        <div style="height: 350px" id="content-wrapper">
            <center>
                <div class="Content">
                    <div style="width: 700px; padding-top: 30px">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center" style="width: 450px; padding: 4px;">
                                    <span id="idSpanMsg" runat="server" class="spanMsgs" style="display: none; width: 450px">
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td class="tdBorder">
                                    <table cellpadding="5" cellspacing="0">
                                        <tr>
                                            <td class="heading" style="width: 450px; padding: 5px;" colspan="2">
                                                Add Vocation
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="padding-top: 20px">
                                                <table cellpadding="5">
                                                    <tr>
                                                        <td class="lblName" style="width: 150px">
                                                            Vocation Name:
                                                        </td>
                                                        <td align="left">
                                                            <div>
                                                                <asp:TextBox ID="txtVocation" Width="180px" runat="server"></asp:TextBox></div>
                                                            <div>
                                                                <asp:RequiredFieldValidator ID="rfvtxtVocation" ForeColor="Red" runat="server" ControlToValidate="txtVocation"
                                                                    ErrorMessage="Please enter Vocation"></asp:RequiredFieldValidator>
                                                              <%--  <asp:RegularExpressionValidator ID="revtxtVocation" ControlToValidate="txtVocation"
                                                                    ErrorMessage="Must be alphanumeric" ForeColor="Red" ValidationExpression="/[^0-9a-bA-B\s]/"
                                                                    runat="server"></asp:RegularExpressionValidator>--%>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" align="right" class="lblName" style="width: 150px">
                                                            Description:
                                                        </td>
                                                        <td align="left">
                                                            <div>
                                                                <asp:TextBox ID="txtDesc" TextMode="MultiLine" Width="250px" Height="60px" runat="server"></asp:TextBox>
                                                            </div>
                                                            <div>
                                                                <asp:RequiredFieldValidator ID="rfvtxtDesc" ForeColor="Red" runat="server" ControlToValidate="txtDesc"
                                                                    ErrorMessage="Please enter descriptionn"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td align="left">
                                                            <asp:Button ID="btnSubmit" CssClass="formBtnEdit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                                                            <span>or</span> <span>
                                                                <asp:LinkButton ID="lnkGoBack" PostBackUrl="~/AddMyVocation.aspx" CausesValidation="false"
                                                                    runat="server">Cancel</asp:LinkButton></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </center>
        </div>
        <div style="clear: both">
        </div>
        <div>
            <uc1:footer runat="server" ID="footer"></uc1:footer>
        </div>
    </center>
    </form>
</body>
</html>
